/*
 * @Description: 
 * @Version: 1.0
 * @Author: tao
 * @Date: 2021-01-15 21:26:50
 * @LastEditors: tao
 * @LastEditTime: 2021-04-12 18:08:23
 */

//不同类型用户的权限
export let authority = {
  '3': [
    "t-project",
    "t-paper",
    "t-patent",
    "t-textbook",
    // "t-score",
    "news"
  ],
  '4': [
    "p-check",
    "g-check",
    "project",
    "game",
    "news"
  ],
  '5': [
    "b-base",
    "b-job",
    "b-practice",
    "news"
  ],
  '6': [
    "t-project",
    "t-paper",
    "t-patent",
    "g-check",
    "p-check",
    "t-textbook",
    // "t-score",
    "news",
    "b-base",
    "b-job",
    "b-practice",
    "project",
    "game",
    "system",
    "u-teacher",
    "u-student",
    "u-admin",
  ]
}

export let power = [
  "t-project",
  "t-paper",
  "t-patent",
  "g-check",
  "p-check",
  "t-textbook",
  // "t-score",
  "news",
  "b-base",
  "b-job",
  "b-practice",
  "project",
  "game",
  "system",
  "u-teacher",
  "u-student",
  "u-admin",
]

export let routeSet = {
  "t-project": {
    path: '/t-project',
    name: '教科研项目'
  },
  "t-paper": {
    path: '/t-paper',
    name: '论文发表'
  },
  "t-patent": {
    path: '/t-patent',
    name: '专利授权'
  },
  "t-textbook": {
    path: '/t-textbook',
    name: '专著和主编教材'
  },
  // "t-score": {
  //   path: '/t-score',
  //   name: '业绩统计'
  // },
  "news": {
    path: '/news',
    name: '新闻公告',
    icon: 'mail'
  },
  "b-base": {
    path: '/b-base',
    name: '实习基地管理'
  },
  "b-job": {
    path: '/b-job',
    name: '招聘会管理'
  },
  "b-practice": {
    path: "/b-practice",
    name: "学生实习管理"
  },
  "project": {
    path: '/project',
    name: '学生项目管理'
  },
  "game": {
    path: '/game',
    name: '学生竞赛管理'
  },
  "system": {
    path: '/system',
    name: '系统设置',
    icon: 'setting'
  },
  "u-teacher": {
    path: '/u-teacher',
    name: '教师用户管理'
  },
  "u-student": {
    path: '/u-student',
    name: '学生用户管理'
  },
  "u-admin": {
    path: '/u-admin',
    name: '管理员管理'
  },
  "p-check": {
    path: "/p-check",
    name: "审核学生项目"
  },
  "g-check": {
    path: "/g-check",
    name: "审核竞赛项目"
  },
}

export let nav = {
  'u-admin': 0,
  'u-student': 0,
  'u-teacher': 0,
  't-paper': 1,
  't-patent': 1,
  't-project': 1,
  't-textbook': 1,
  'b-base': 2,
  'b-job': 2,
  'b-practice': 2,
  // 't-score': 0,
  'p-check': 3,
  'project': 3,
  'game': 4,
  "g-check": 4
}